package com.zzyl.nursing.service;

import java.util.List;

import com.zzyl.common.core.domain.AjaxResult;
import com.zzyl.nursing.domain.Device;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zzyl.nursing.dto.DeviceDto;
import com.zzyl.nursing.vo.DeviceDetailVo;
import com.zzyl.nursing.vo.DeviceShadowVo;
import com.zzyl.nursing.vo.ProductVo;

/**
 * 智能设备表Service接口
 * 
 * @author ruoyi
 * @date 2025-08-01
 */
public interface IDeviceService extends IService<Device>
{
    /**
     * 查询智能设备表
     * 
     * @param id 智能设备表主键
     * @return 智能设备表
     */
    public Device selectDeviceById(Long id);

    /**
     * 查询智能设备表列表
     * 
     * @param device 智能设备表
     * @return 智能设备表集合
     */
    public List<Device> selectDeviceList(Device device);

    void syncProductList();

    List<ProductVo> allProduct();

    void registerDevice(DeviceDto deviceDto);

    DeviceDetailVo queryDeviceDetail(String iotId);

    List<DeviceShadowVo> queryServiceProperties(String iotId);

    void updateDevice(DeviceDto dto);

    void deleteDevice(String iotId);

}
